<div id="msgModal{{id}}" class="modal fade">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal">&times;</button>
                <h4 class="modal-title">
                    {% if msg.ok %}操作成功{% else %}操作失败{% end %}
                </h4>
            </div>
            <div class="modal-body">
                {% for m in msg.messages %}
                <p>{{m}}</p>
                {% end %}
            </div>
            <div class="modal-footer">
                {% if msg.confirm %}
                <a class="btn btn-default" data-dismiss="modal">取消</a>
                <a class="btn btn-primary">继续</a>
                {% else %}
                <button id="msgModal{{id}}-btn-ok" class="btn btn-primary" data-dismiss="modal">确定</button>
                {% end %}
            </div>
        </div>
    </div>
</div>
